
/*
    extern module lcd 
*/

#ifndef EM_LCD_H__
#define EM_LCD_H__

#include <stdint.h> 
#include <stdbool.h> 

void em_lcd_init(void);

void em_lcd_power_off(void);

void em_lcd_power_on(void);

void em_lcd_sleep_out(void);

void em_lcd_turn_on(void);

void em_lcd_set_window(int16_t x0, int16_t y0, int16_t x1, int16_t y1);

void em_lcd_write(uint8_t* p_buffer, uint32_t size);

void em_lcd_write_block( uint8_t* p_buffer, int16_t offset, uint16_t size, int16_t count );

void em_lcd_draw_point( int16_t x, int16_t y, uint16_t color ); 

void em_lcd_wait_transfer_idle(void);

void em_lcd_wait_transfer_completed(void);

bool em_lcd_check_transfer_completed(void); 


void em_lcd_enter_dlps(void);

void em_lcd_exit_dlps(void);




#endif

